package com.woniuxy.light_smart.service;

import com.woniuxy.light_smart.dto.ApplicationDto;
import com.woniuxy.light_smart.entity.ApplicationRole;
import com.woniuxy.light_smart.entity.UserRole;

import java.util.List;

/**
* @author wts
* @description 针对表【application_role】的数据库操作Mapper
* @createDate 2022-12-13 15:58:23
* @Entity com.woniuxy.light_smart.entity.ApplicationRole
*/
public interface ApplicationRoleService {

    int deleteByPrimaryKey(Long id);

    int insert(ApplicationRole record);

    int insertSelective(ApplicationRole record);

    ApplicationRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ApplicationRole record);

    int updateByPrimaryKey(ApplicationRole record);

    Integer insertOne(ApplicationDto applicationDto);

    List<ApplicationRole> selectAppRoleOne();

    List<UserRole> selectAllUserRole(ApplicationDto applicationDto);

    int insertUserRole(List<UserRole> roles);

    int updateUserRole(ApplicationDto applicationDto);
}
